package net.jiastudy.core.base;

import org.springframework.context.ApplicationEvent;
import org.springframework.security.core.userdetails.UserDetails;

public abstract class BaseEvent extends ApplicationEvent {

	private UserDetails currentUser;
	public BaseEvent(Object source) {
		super(source);
	}
	
	public BaseEvent(Object source, UserDetails currentUser) {
		super(source);
		this.currentUser = currentUser;
	}

	public UserDetails getCurrentUser() {
		return currentUser;
	}

	public void setCurrentUser(UserDetails currentUser) {
		this.currentUser = currentUser;
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = 4423762241832566379L;

}
